package com.hqully.labmanage.domain.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * [FaultRecordRead]实体类
 *
 * @author hqully
 * @date 2022-10-14 10:17:37
 */
@ApiModel(description = "故障记录已读表")
@Data
public class FaultRecordRead implements Serializable {

    private static final long serialVersionUID = 439326438833769911L;
    
    /**
     * 记录id
     */
    @ApiModelProperty("记录id")
    @NotNull(message = "记录id不能为空")
    private Long id;
    
    /**
     * 故障记录id
     */
    @ApiModelProperty("故障记录id")
    @NotNull(message = "故障记录id不能为空")
    private String faultRecordId;
    
    /**
     * 阅读者用户id
     */
    @ApiModelProperty("阅读者用户id")
    @NotNull(message = "阅读者用户id不能为空")
    private Long userId;
    
    /**
     * 是否已读
     */
    @ApiModelProperty("是否已读")
    private Boolean read;
    
    /**
     * 阅读时间
     */
    @ApiModelProperty("阅读时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime readTime;
    

}

